home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python152_Src.lha / Python152_Source / Modules / protos / rotormodule.h < prev    next >
Text File  |  1999-04-25  |  1KB  |  26 lines

  1. static void set_seed ( Rotorobj *r );
  2. static double r_random ( Rotorobj *r );
  3. static short r_rand ( Rotorobj *r , int s );
  4. static void set_key ( Rotorobj *r , char *key );
  5. static Rotorobj *rotorobj_new ( int num_rotors , char *key );
  6. static void RTR_make_id_rotor ( Rotorobj *r , unsigned char *rtr );
  7. static void RTR_e_rotors ( Rotorobj *r );
  8. static void RTR_d_rotors ( Rotorobj *r );
  9. static void RTR_positions ( Rotorobj *r );
  10. static void RTR_advances ( Rotorobj *r );
  11. static void RTR_permute_rotor ( Rotorobj *r , unsigned char *e , unsigned char *d );
  12. static void RTR_init ( Rotorobj *r );
  13. static void RTR_advance ( Rotorobj *r );
  14. static unsigned char RTR_e_char ( Rotorobj *r , unsigned char p );
  15. static unsigned char RTR_d_char ( Rotorobj *r , unsigned char c );
  16. static void RTR_e_region ( Rotorobj *r , unsigned char *beg , int len , int doinit );
  17. static void RTR_d_region ( Rotorobj *r , unsigned char *beg , int len , int doinit );
  18. static void rotor_dealloc ( Rotorobj *xp );
  19. static PyObject *rotorobj_encrypt ( Rotorobj *self , PyObject *args );
  20. static PyObject *rotorobj_encrypt_more ( Rotorobj *self , PyObject *args );
  21. static PyObject *rotorobj_decrypt ( Rotorobj *self , PyObject *args );
  22. static PyObject *rotorobj_decrypt_more ( Rotorobj *self , PyObject *args );
  23. static PyObject *rotorobj_setkey ( Rotorobj *self , PyObject *args );
  24. static PyObject *rotorobj_getattr ( Rotorobj *s , char *name );
  25. static PyObject *rotor_rotor ( PyObject *self , PyObject *args );
  26.